TEMPLATE = app

include(../../smsrouter.pri)
include(../libs/dbmanager/dbmanager.pri)
include(../libs/smpp/smpp.pri)
include(../libs/binaryrpc/binaryrpc.pri)
include(../libs/logmanager/logmanager.pri)
include(../libs/qtjsonsettings/qtjsonsettings.pri)

QT      += network

TARGET   = $$APP_TARGET

DESTDIR  = $$APP_PATH

INCLUDEPATH += $$PWD

SOURCES += \
  main.cpp \
  unixdaemon/unixdaemon.cpp \
  sessionmanager/session_manager.cpp \
  sessionmanager/source_server.cpp \
  kernel/kernel.cpp \
  mailer/mailer.cpp \
  logencoder/log_encoder.cpp \
    logdecoder/log_decoder.cpp

HEADERS += \
  global.h \
  unixdaemon/unixdaemon.h \
  sessionmanager/session_manager.h \
  sessionmanager/source_server.h \
  kernel/kernel.h \
  sessionmanager/session_manager_p.h \
  mailer/mailer.h \
  mailer/mailer_p.h \
  kernel/kernel_p.h \
  logencoder/log_encoder.h \
  logencoder/log_encoder_p.h \
    logdecoder/log_decoder.h \
    logdecoder/log_decoder_p.h \
    logparams/log_obj.h \
    logparams/log_message_templates.h \
    logparams/log_message_parameters.h \
    logparams/log_message_codes.h \
    logparams/log_class.h \
    logparams/log_app.h \
    logdecoder/log_decoded_message.h

unix: {
  appinstall.path = /usr/bin
  appinstall.files += $$APP_PATH/$$APP_TARGET
  INSTALLS += appinstall
}
